<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('项目管理详情')"/>
    <th:block th:include="include :: jquery-smartwizard-css-v6"/>
    <th:block th:include="include :: datetimepicker-css"/>
    <th:block th:include="include :: bootstrap-fileinput-css"/>
    <style type="text/css">
        /* 如果要让工具栏固定在页面底部,使用下面的样式,不需要的可以注释 */
        .sw > .toolbar-bottom {
            z-index: 100;
            bottom: 0px;
            left: 0;
            width: 100%;
            position: fixed;
            text-align: right;
            background: #fff;
            box-shadow: 0 -2px 6px 1px hsla(223, 8%, 83%, .5);
            border-top: 1px solid #e3e4e8;
        }

        /* 如果设置了是否自动调节高度为false,需要加滚动条 */
        .sw > .tab-content {
            overflow-x: hidden;
            overflow-y: auto;
        }

        /* 解决工具栏无法固定底部的问题（如果页面没有animated类可以不写这部分代码） */
        .animated {
            animation-fill-mode: none;
            -webkit-animation-fill-mode: none;
            -moz-animation-fill-mode: none;
            -o-animation-fill-mode: none;
        }
    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight" style="height: 100%;">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox">
                <div class="ibox-title">
                    <!--                    <h5>-->
                    <!--                        表单向导-->
                    <!--                        <small>https://github.com/techlab/jquery-smartwizard</small>-->
                    <!--                    </h5>-->
                </div>
                <div class="ibox-content">
                    <div class="row select-list" style="padding-left: 15px; margin-bottom: 10px;">
                        <ul>
                            <!--                            <li>-->
                            <!--                                选择样式：-->
                            <!--                                <select id="theme-selector">-->
                            <!--                                    <option value="default">Default</option>-->
                            <!--                                    <option value="arrows" selected>Arrows</option>-->
                            <!--                                    <option value="dots">Dots</option>-->
                            <!--                                    <option value="progress">Progress</option>-->
                            <!--                                </select>-->
                            <!--                            </li>-->
                            <!-- 快速操作栏按钮 -->
                            <!--                            <li>-->
                            <!--                                <div class="btn-group-sm" role="group">-->
                            <!--                                    <a class="btn btn-info" id="prev-btn"> 上一步 </a>-->
                            <!--                                    <a class="btn btn-success" id="next-btn"> 下一步 </a>-->
                            <!--                                    <a class="btn btn-danger" id="reset-btn"> 重置 </a>-->
                            <!--                                </div>-->
                            <!--                            </li>-->
                        </ul>

                    </div>
                    <div id="smartwizard">
                        <ul class="nav">
                            <!--                            <li class="nav-item" th:each="nav, index : ${schedules}">-->
                            <!--                                <a class="nav-link" th:href="${'#step-' + index.count}" th:text="${nav.dictLabel}"></a>-->
                            <!--                            </li>-->
                            <li class="nav-item" th:each="nav : ${management.schedule}">
                                <a class="nav-link" th:href="${'#step-' + nav.dictSort}" th:text="${nav.dictLabel}"></a>
                            </li>
                        </ul>
                        <div class="tab-content">
                            <div th:each="schedule : ${management.schedule}" th:id="${'#step-' + schedule.dictSort}"
                                 class="tab-pane" role="tabpanel" th:aria-labelledby="${'#step-' + schedule.dictSort}">
                                <form class="form form-horizontal m-t" th:id="${'#detail-' + schedule.dictSort}"
                                      th:object="${management}">
                                    <div th:if="${schedule.projectSchedule == 'DEMAND_RESEARCH'}">
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">需求类型：</label>
                                            <div class="col-sm-8">
                                                <select name="requirementType" class="form-control m-b"
                                                        th:with="type=${@dict.getType('sys_requirement_type')}">
                                                    <option th:field="*{requirementType}" th:each="dict : ${type}"
                                                            th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
                                                            disabled></option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">项目预算：</label>
                                            <div class="col-sm-8">
                                                <input name="projectBudget" th:field="*{projectBudget}"
                                                       class="form-control" type="text" readonly>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">调研必要性：</label>
                                            <div class="col-sm-8">
                                                <label class="radio-box" th:if="${management.projectResearch==1}"><input
                                                        type="radio" checked="" value="1" name="projectResearch"
                                                        readonly>是</label>
                                                <label class="radio-box" th:if="${management.projectResearch==0}"><input
                                                        type="radio" value="0" name="projectResearch" readonly>否</label>
                                            </div>
                                        </div>

                                        <div id="projectResearch" th:if="${management.projectResearch==1}">
                                            <div class="form-group">
                                                <label class="col-sm-3 control-label is-required">调研时间：</label>
                                                <div class="col-sm-8">
                                                    <div class="input-group date">
                                                        <span class="input-group-addon"><i
                                                                class="fa fa-calendar"></i></span>
                                                        <input id="researchTime" name="researchTime"
                                                               th:value="${#dates.format(management.research.researchTime, 'yyyy-MM-dd')}"
                                                               class="form-control" placeholder="yyyy-MM-dd" type="text"
                                                               readonly>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-sm-3 control-label is-required">供应商：</label>
                                                <div class="col-sm-8">
                                                    <input name="supplier" th:field="*{research.supplier}"
                                                           class="form-control" type="text" readonly>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-sm-3 control-label is-required">产品：</label>
                                                <div class="col-sm-8">
                                                    <input name="product" th:field="*{research.product}"
                                                           class="form-control" type="text" readonly>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-sm-3 control-label is-required">市场：</label>
                                                <div class="col-sm-8">
                                                    <input name="market" th:field="*{research.market}"
                                                           class="form-control" type="text" readonly>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">POC测试：</label>
                                            <div class="col-sm-8">
                                                <label class="radio-box" th:if="${management.pocTesting==1}"><input
                                                        type="radio" checked="" value="1" name="pocTesting"
                                                        readonly>是</label>
                                                <label class="radio-box" th:if="${management.pocTesting==0}"><input
                                                        type="radio" value="0" name="pocTesting" readonly>否</label>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">相关文件：</label>
                                            <div class="col-sm-8 ">
                                                <input th:id="${'multipleFile' + schedule.dictSort}" class="form-control" name="files" type="file"
                                                       multiple>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">经办人：</label>
                                            <div class="col-sm-8">
                                                <input name="createBy" th:field="*{createBy}" class="form-control"
                                                       type="text" readonly>
                                            </div>
                                        </div>
                                    </div>

                                    <div th:if="${schedule.projectSchedule == 'PRODUCT_AUDIT'}">
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">审批时间：</label>
                                            <div class="col-sm-8">
                                                <div class="input-group date">
                                                    <span class="input-group-addon"><i
                                                            class="fa fa-calendar"></i></span>
                                                    <input th:id="${'approvalTime' + schedule.dictSort}"
                                                           name="approvalTime"
                                                           th:value="${#dates.format(schedule.auditTime, 'yyyy-MM-dd')}"
                                                           class="form-control" placeholder="yyyy-MM-dd" type="text"
                                                           readonly>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">审批结果：</label>
                                            <div class="col-sm-8">
                                                <label class="radio-box" th:if="${schedule.findingOfAudit==1}"><input
                                                        type="radio" checked="" value="true" name="productAuditApprove">同意</label>
                                                <label class="radio-box" th:if="${schedule.findingOfAudit==0}"><input
                                                        type="radio" value="false" name="productAuditApprove">拒绝</label>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">相关文件：</label>
                                            <div class="col-sm-8 ">
                                                <input th:id="${'multipleFile' + schedule.dictSort}"
                                                       class="form-control" name="files" type="file" multiple>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">经办人：</label>
                                            <div class="col-sm-8">
                                                <input name="createBy" th:field="*{createBy}" class="form-control"
                                                       type="text" readonly>
                                            </div>
                                        </div>
                                    </div>

                                    <div th:if="${schedule.projectSchedule == 'INFO_SCIENCE_AUDIT'}">
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">审批时间：</label>
                                            <div class="col-sm-8">
                                                <div class="input-group date">
                                                    <span class="input-group-addon"><i
                                                            class="fa fa-calendar"></i></span>
                                                    <input th:id="${'approvalTime' + schedule.dictSort}"
                                                           name="approvalTime"
                                                           th:value="${#dates.format(schedule.auditTime, 'yyyy-MM-dd')}"
                                                           class="form-control" placeholder="yyyy-MM-dd" type="text"
                                                           readonly>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">审批结果：</label>
                                            <div class="col-sm-8">
                                                <label class="radio-box" th:if="${schedule.findingOfAudit==1}"><input
                                                        type="radio" checked="" value="true" name="productAuditApprove">同意</label>
                                                <label class="radio-box" th:if="${schedule.findingOfAudit==0}"><input
                                                        type="radio" value="false" name="productAuditApprove">拒绝</label>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">相关文件：</label>
                                            <div class="col-sm-8 ">
                                                <input th:id="${'multipleFile' + schedule.dictSort}"
                                                       class="form-control" name="files" type="file" multiple>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">经办人：</label>
                                            <div class="col-sm-8">
                                                <input name="createBy" th:field="*{createBy}" class="form-control"
                                                       type="text" readonly>
                                            </div>
                                        </div>
                                    </div>

                                    <div th:if="${schedule.projectSchedule == 'POC_TEST'}">
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">调研时间：</label>
                                            <div class="col-sm-8">
                                                <div class="input-group date">
                                                    <span class="input-group-addon"><i
                                                            class="fa fa-calendar"></i></span>
                                                    <input th:id="${'approvalTime' + schedule.dictSort}"
                                                           name="approvalTime"
                                                           th:value="${#dates.format(management.testing.researchTime, 'yyyy-MM-dd')}"
                                                           class="form-control" placeholder="yyyy-MM-dd" type="text"
                                                           readonly>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">供应商：</label>
                                            <div class="col-sm-8">
                                                <input name="supplier" th:field="*{testing.supplier}"
                                                       class="form-control" type="text" readonly>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">产品：</label>
                                            <div class="col-sm-8">
                                                <input name="product" th:field="*{testing.product}" class="form-control"
                                                       type="text" readonly>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">市场：</label>
                                            <div class="col-sm-8">
                                                <input name="market" th:field="*{testing.market}" class="form-control"
                                                       type="text" readonly>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">测试描述：</label>
                                            <div class="col-sm-8">
                                                <input name="testDescription" th:field="*{testing.testDescription}"
                                                       class="form-control" type="text" readonly>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">相关文件：</label>
                                            <div class="col-sm-8 ">
                                                <input th:id="${'multipleFile' + schedule.dictSort}"
                                                       class="form-control" name="files" type="file" multiple>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">经办人：</label>
                                            <div class="col-sm-8">
                                                <input name="createBy" th:field="*{createBy}" class="form-control"
                                                       type="text" readonly>
                                            </div>
                                        </div>
                                    </div>

                                    <div th:if="${schedule.projectSchedule == 'PROJECT_AUDIT'}">
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">审批时间：</label>
                                            <div class="col-sm-8">
                                                <div class="input-group date">
                                                    <span class="input-group-addon"><i
                                                            class="fa fa-calendar"></i></span>
                                                    <input th:id="${'approvalTime' + schedule.dictSort}"
                                                           name="approvalTime"
                                                           th:value="${#dates.format(schedule.auditTime, 'yyyy-MM-dd')}"
                                                           class="form-control" placeholder="yyyy-MM-dd" type="text"
                                                           readonly>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">审批结果：</label>
                                            <div class="col-sm-8">
                                                <label class="radio-box" th:if="${schedule.findingOfAudit==1}"><input
                                                        type="radio" checked="" value="true"
                                                        name="approvalAudit">同意</label>
                                                <label class="radio-box" th:if="${schedule.findingOfAudit==0}"><input
                                                        type="radio" value="false" name="approvalAudit">拒绝</label>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">相关文件：</label>
                                            <div class="col-sm-8 ">
                                                <input th:id="${'multipleFile' + schedule.dictSort}"
                                                       class="form-control" name="files" type="file" multiple>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">经办人：</label>
                                            <div class="col-sm-8">
                                                <input name="createBy" th:field="*{createBy}" class="form-control"
                                                       type="text" readonly>
                                            </div>
                                        </div>
                                    </div>

                                    <div th:if="${schedule.projectSchedule == 'PARTY_COMMITTEE_AUDIT'}">
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">审批时间：</label>
                                            <div class="col-sm-8">
                                                <div class="input-group date">
                                                    <span class="input-group-addon"><i
                                                            class="fa fa-calendar"></i></span>
                                                    <input th:id="${'approvalTime' + schedule.dictSort}"
                                                           name="approvalTime"
                                                           th:value="${#dates.format(schedule.auditTime, 'yyyy-MM-dd')}"
                                                           class="form-control" placeholder="yyyy-MM-dd" type="text"
                                                           readonly>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">审批结果：</label>
                                            <div class="col-sm-8">
                                                <label class="radio-box" th:if="${schedule.findingOfAudit==1}"><input
                                                        type="radio" checked="" value="true"
                                                        name="executivepartyAuditApprove">同意</label>
                                                <label class="radio-box" th:if="${schedule.findingOfAudit==0}"><input
                                                        type="radio" value="false" name="executivepartyAuditApprove">拒绝</label>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">相关文件：</label>
                                            <div class="col-sm-8 ">
                                                <input th:id="${'multipleFile' + schedule.dictSort}"
                                                       class="form-control" name="files" type="file" multiple>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">经办人：</label>
                                            <div class="col-sm-8">
                                                <input name="createBy" th:field="*{createBy}" class="form-control"
                                                       type="text" readonly>
                                            </div>
                                        </div>
                                    </div>

                                    <div th:if="${schedule.projectSchedule == 'FINANCIAL_AFFAIRS_AUDIT'}">
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">审批时间：</label>
                                            <div class="col-sm-8">
                                                <div class="input-group date">
                                                    <span class="input-group-addon"><i
                                                            class="fa fa-calendar"></i></span>
                                                    <input th:id="${'approvalTime' + schedule.dictSort}"
                                                           name="approvalTime"
                                                           th:value="${#dates.format(schedule.auditTime, 'yyyy-MM-dd')}"
                                                           class="form-control" placeholder="yyyy-MM-dd" type="text"
                                                           readonly>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">审批结果：</label>
                                            <div class="col-sm-8">
                                                <label class="radio-box" th:if="${schedule.findingOfAudit==1}"><input
                                                        type="radio" checked="" value="true"
                                                        name="financialreviewAuditApprove">同意</label>
                                                <label class="radio-box" th:if="${schedule.findingOfAudit==0}"><input
                                                        type="radio" value="false" name="financialreviewAuditApprove">拒绝</label>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">相关文件：</label>
                                            <div class="col-sm-8 ">
                                                <input th:id="${'multipleFile' + schedule.dictSort}"
                                                       class="form-control" name="files" type="file" multiple>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">经办人：</label>
                                            <div class="col-sm-8">
                                                <input name="createBy" th:field="*{createBy}" class="form-control"
                                                       type="text" readonly>
                                            </div>
                                        </div>
                                    </div>

                                    <div th:if="${schedule.projectSchedule == 'INVITE_BIDS'}">
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">采购方式：</label>
                                            <div class="col-sm-8">
                                                <select name="procurementMethod" class="form-control m-b"
                                                        th:with="type=${@dict.getType('sys_procurement_method')}">
                                                    <option th:field="*{inviteBids.procurementMethod}"
                                                            th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                                            th:value="${dict.dictValue}" disabled></option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">评标原则：</label>
                                            <div class="col-sm-8">
                                                <select name="evaluationPrinciples" class="form-control m-b"
                                                        th:with="type=${@dict.getType('sys_evaluation_principles')}">
                                                    <option th:field="*{inviteBids.evaluationPrinciples}"
                                                            th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                                            th:value="${dict.dictValue}" disabled></option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">开标时间：</label>
                                            <div class="col-sm-8">
                                                <div class="input-group date">
                                                    <span class="input-group-addon"><i
                                                            class="fa fa-calendar"></i></span>
                                                    <input th:id="${'approvalTime' + schedule.dictSort}"
                                                           name="approvalTime"
                                                           th:value="${#dates.format(management.inviteBids.bidOpeningTime, 'yyyy-MM-dd')}"
                                                           class="form-control" placeholder="yyyy-MM-dd" type="text"
                                                           readonly>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">开标方式：</label>
                                            <div class="col-sm-8">
                                                <select name="bidOpeningMethod" class="form-control m-b"
                                                        th:with="type=${@dict.getType('sys_bid_opening_method')}">
                                                    <option th:field="*{inviteBids.bidOpeningMethod}"
                                                            th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                                            th:value="${dict.dictValue}" disabled></option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">开标地点：</label>
                                            <div class="col-sm-8">
                                                <input name="placeOfBidOpening"
                                                       th:field="*{inviteBids.placeOfBidOpening}" class="form-control"
                                                       type="text" readonly>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">招标评委：</label>
                                            <div class="col-sm-8">
                                                <input name="bidOpeningJudges" th:field="*{inviteBids.bidOpeningJudges}"
                                                       class="form-control" type="text" readonly>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">合规员：</label>
                                            <div class="col-sm-8">
                                                <input name="complianceOfficer"
                                                       th:field="*{inviteBids.complianceOfficer}" class="form-control"
                                                       type="text" readonly>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">投标公司1名称：</label>
                                            <div class="col-sm-8">
                                                <input name="nameOfBiddingCompany1"
                                                       th:field="*{inviteBids.nameOfBiddingCompany1}"
                                                       class="form-control" type="text" readonly>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">投标公司1投标人：</label>
                                            <div class="col-sm-8">
                                                <input name="biddingCompanyBidder1"
                                                       th:field="*{inviteBids.biddingCompanyBidder1}"
                                                       class="form-control" type="text" readonly>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">投标公司1报价：</label>
                                            <div class="col-sm-8">
                                                <input name="biddingCompanyQuotation1"
                                                       th:field="*{inviteBids.biddingCompanyQuotation1}"
                                                       class="form-control" type="text" readonly>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">投标公司2名称：</label>
                                            <div class="col-sm-8">
                                                <input name="nameOfBiddingCompany2"
                                                       th:field="*{inviteBids.nameOfBiddingCompany2}"
                                                       class="form-control" type="text" readonly>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">投标公司2投标人：</label>
                                            <div class="col-sm-8">
                                                <input name="biddingCompanyBidder2"
                                                       th:field="*{inviteBids.biddingCompanyBidder2}"
                                                       class="form-control" type="text" readonly>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">投标公司2报价：</label>
                                            <div class="col-sm-8">
                                                <input name="biddingCompanyQuotation2"
                                                       th:field="*{inviteBids.biddingCompanyQuotation2}"
                                                       class="form-control" type="text" readonly>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">投标公司3名称：</label>
                                            <div class="col-sm-8">
                                                <input name="nameOfBiddingCompany3"
                                                       th:field="*{inviteBids.nameOfBiddingCompany3}"
                                                       class="form-control" type="text" readonly>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">投标公司3投标人：</label>
                                            <div class="col-sm-8">
                                                <input name="biddingCompanyBidder3"
                                                       th:field="*{inviteBids.biddingCompanyBidder3}"
                                                       class="form-control" type="text" readonly>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">投标公司3报价：</label>
                                            <div class="col-sm-8">
                                                <input name="biddingCompanyQuotation3"
                                                       th:field="*{inviteBids.biddingCompanyQuotation3}"
                                                       class="form-control" type="text" readonly>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">相关文件：</label>
                                            <div class="col-sm-8 ">
                                                <input th:id="${'multipleFile' + schedule.dictSort}"
                                                       class="form-control" name="files" type="file" multiple>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">经办人：</label>
                                            <div class="col-sm-8">
                                                <input name="createBy" th:field="*{createBy}" class="form-control"
                                                       type="text" readonly>
                                            </div>
                                        </div>
                                    </div>

                                    <div th:if="${schedule.projectSchedule == 'CONCLUDE_A_CONTRACT'}">
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">项目名称：</label>
                                            <div class="col-sm-8">
                                                <input name="projectName" th:field="*{projectName}" class="form-control"
                                                       type="text" readonly>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">项目编号：</label>
                                            <div class="col-sm-8">
                                                <input name="projectNo" th:field="*{projectNo}" class="form-control"
                                                       type="text" readonly>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">签订时间：</label>
                                            <div class="col-sm-8">
                                                <div class="input-group date">
                                                    <span class="input-group-addon"><i
                                                            class="fa fa-calendar"></i></span>
                                                    <input th:id="${'approvalTime' + schedule.dictSort}"
                                                           name="approvalTime"
                                                           th:value="${#dates.format(schedule.auditTime, 'yyyy-MM-dd')}"
                                                           class="form-control" placeholder="yyyy-MM-dd" type="text"
                                                           readonly>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">合同金额：</label>
                                            <div class="col-sm-8">
                                                <input name="projectAmount" th:field="*{projectAmount}"
                                                       class="form-control" type="text" readonly>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">相关文件：</label>
                                            <div class="col-sm-8 ">
                                                <input th:id="${'multipleFile' + schedule.dictSort}"
                                                       class="form-control" name="files" type="file" multiple>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">经办人：</label>
                                            <div class="col-sm-8">
                                                <input name="createBy" th:field="*{createBy}" class="form-control"
                                                       type="text" readonly>
                                            </div>
                                        </div>
                                    </div>

                                    <div th:if="${schedule.projectSchedule == 'CHECK_AND_ACCEPT'}">
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">验收时间：</label>
                                            <div class="col-sm-8">
                                                <div class="input-group date">
                                                    <span class="input-group-addon"><i
                                                            class="fa fa-calendar"></i></span>
                                                    <input th:id="${'approvalTime' + schedule.dictSort}"
                                                           name="approvalTime"
                                                           th:value="${#dates.format(schedule.auditTime, 'yyyy-MM-dd')}"
                                                           class="form-control" placeholder="yyyy-MM-dd" type="text"
                                                           readonly>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">相关文件：</label>
                                            <div class="col-sm-8 ">
                                                <input th:id="${'multipleFile' + schedule.dictSort}"
                                                       class="form-control" name="files" type="file" multiple>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">经办人：</label>
                                            <div class="col-sm-8">
                                                <input name="createBy" th:field="*{createBy}" class="form-control"
                                                       type="text" readonly>
                                            </div>
                                        </div>
                                    </div>

                                    <div th:if="${schedule.projectSchedule == 'PAYMENT'}">
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">付款时间：</label>
                                            <div class="col-sm-8">
                                                <div class="input-group date">
                                                    <span class="input-group-addon"><i
                                                            class="fa fa-calendar"></i></span>
                                                    <input th:id="${'approvalTime' + schedule.dictSort}"
                                                           name="approvalTime"
                                                           th:value="${#dates.format(schedule.auditTime, 'yyyy-MM-dd')}"
                                                           class="form-control" placeholder="yyyy-MM-dd" type="text"
                                                           readonly>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label">相关文件：</label>
                                            <div class="col-sm-8 ">
                                                <input th:id="${'multipleFile' + schedule.dictSort}"
                                                       class="form-control" name="files" type="file" multiple>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-3 control-label is-required">经办人：</label>
                                            <div class="col-sm-8">
                                                <input name="createBy" th:field="*{createBy}" class="form-control"
                                                       type="text" readonly>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: jquery-smartwizard-js-v6"/>
<th:block th:include="include :: bootstrap-fileinput-js"/>
<th:block th:include="include :: datetimepicker-js"/>
<script th:inline="javascript">

    var filePrefix = ctx + "project/file";

    function generFilDel(file) {
        if(file != null && file != ''){
            var type = file.filePath.substr(file.filePath.lastIndexOf('.') + 1);
            if(type=='pdf'){
                return {type: "pdf", caption: file.fileName, url:filePrefix + "/deletePic", key: file.fileId, downloadUrl:filePrefix + "/download/" + file.fileId};
            }else if(type=='doc'){
                return {type: "doc", caption: file.fileName, url:filePrefix + "/deletePic", key: file.fileId, downloadUrl: filePrefix + "/download/" + file.fileId};
            } else if (type=='docx'){
                return {type: "docx",  caption: file.fileName, url:filePrefix + "/deletePic", key: file.fileId, downloadUrl:filePrefix + "/download/" + file.fileId};
            }
        }
    }

    $(document).ready(function () {

        var pmsFujian = [[${management.schedule}]];

        var initialPreview = [];
        var initialPreviewConfig = [];
        var initialPreviewAsData = false;

        if(pmsFujian[0].scheduleId == null){
            pmsFujian = [];
        }

        if(pmsFujian != null && pmsFujian != '' && pmsFujian.length > 0){
            for(var i = 0;i<pmsFujian.length;i++) {
                initialPreview = [];
                initialPreviewConfig = [];
                initialPreviewAsData = false;
                var Fujian = pmsFujian[i];
                if(Fujian != null && Fujian !='' && Fujian.isWithFiles == 1){
                    var projectFiles = Fujian.projectFiles;
                    for (var j = 0; j < projectFiles.length; j++) {
                        var projectFile = projectFiles[j];
                        var delFujian = new Object();
                        delFujian = generFilDel(projectFile);
                        //把文件的路径传到这个数组里面
                        initialPreview.push(projectFile.filePath);
                        //把文件的信息传到这个数组里面
                        initialPreviewConfig.push(delFujian);
                        initialPreviewAsData = true;
                    }
                }

                $("#multipleFile" + Fujian.dictSort).fileinput({
                    //是否显示被选文件的简介
                    showCaption: true,
                    //是否显示上传按钮
                    showUpload: false,
                    //是否显示移除按钮
                    showRemove: false,
                    //是否显示上传按钮
                    showUpload: false,
                    //是否显示拖拽区域
                    dropZoneEnabled: false,
                    uploadUrl: filePrefix + '/uploads',
                    allowedFileExtensions: ['doc', 'docx', 'pdf'],
                    uploadAsync: false,
                    validateInitialCount: true,
                    maxFileSize: 10240,
                    maxFileCount: 10,
                    enctype: 'multipart/form-data',
                    layoutTemplates: {
                        //去除上传
                        actionUpload: '',
                        //去除删除
                        actionDelete: ''
                    },
                    initialPreview: initialPreview,
                    initialPreviewConfig: initialPreviewConfig,
                    initialPreviewAsData: initialPreviewAsData
                }).attr("disabled", true);
            }
        }

        // 工具栏按钮
        var btnFinish = $('<a id="btn-finish"></a>').text('关闭')
            .addClass('btn btn-success sw-btn')
            .on('click', function () {
                $.modal.closeTab();
            });
        // 下面两个按钮是为了因为插件默认的是botton,这里换成<a>,也可以选择用样式替换,或者不替换
        var btnNext = $('<a id="btn-next"></a>').text('下一步')
            .addClass('btn sw-btn-next sw-btn')
            .on('click', function () {
                $('#smartwizard').smartWizard("next");
            });
        var btnPrev = $('<a id="btn-prev"></a>').text('上一步')
            .addClass('btn sw-btn-prev sw-btn disabled')
            .on('click', function () {
                $('#smartwizard').smartWizard("prev");
            });

        // 初始化表单向导组件
        $('#smartwizard').smartWizard({
            //theme: 'arrows', // default, arrows, dots, progress
            theme: 'arrows', // default, arrows, dots, progress
            // 自动调整高度, 默认true
            autoAdjustHeight: false,
            //开启URL hash,开启后点击浏览器前进后退按钮会执行下一步和上一步操作
            enableURLhash: false,
            transition: {
                // Effect on navigation, none/fade/slide-horizontal/slide-vertical/slide-swing
                animation: 'slide-horizontal',
            },
            toolbar: {
                // 因为上面自定义了下一步按钮, 所以隐藏掉插件自带的按钮, 如果不使用自定义按钮, 需要改为true或者去掉该属性
                showNextButton: false,
                // 因为上面自定义了上一步按钮, 所以隐藏掉插件自带的按钮, 如果不使用自定义按钮, 需要改为true或者去掉该属性
                showPreviousButton: false,
                // 扩展的按钮集合
                //toolbarExtraButtons: [btnCancel,btnPrev,btnNext,btnFinish]
                //toolbarExtraButtons: [btnPrev,btnNext,btnFinish]
                extraHtml: btnPrev[0].outerHTML + btnNext[0].outerHTML + btnFinish[0].outerHTML,
            },
            anchor: {
                enableNavigationAlways: true
            }
        }).on("showStep", function (e, anchorObject, stepNumber, stepDirection, stepPosition) {
            // 下面按钮是工具栏的
            $("#btn-prev").removeClass('disabled');
            $("#btn-next").removeClass('disabled');
            if (stepPosition === 'first') {
                $("#btn-prev").addClass('disabled');
            } else if (stepPosition === 'last') {
                //// 快速操作栏（演示用）
                $("#next-btn").addClass('disabled');
                $("#btn-next").addClass('disabled');
            } else {
                $("#btn-prev").removeClass('disabled');
                $("#btn-next").removeClass('disabled');
            }
        }).on("leaveStep", function (e, anchorObject, currentStepNumber, nextStepNumber, stepDirection) {
            if (stepDirection == 'forward') {
                var form = $("#step-" + (currentStepNumber + 1)).find('.form');
                if (form.length > 0) {
                    return form.validate().form();
                }
                return true;
            }
            return true;
        });

        $("#btn-finish").on("click", function () {
            $.modal.closeTab();
        });
    });
</script>
</body>
</html>
